﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tanmia.Core;
using Tanmia.Basis.ViewModel;
using Tanmia.Domain;
using System.ComponentModel;
using System.Windows.Data;

namespace Tanmia.Windows.VoucherScenario
{
    public class VoucherViewModel : BaseViewModel<Voucher>
    {
        public ICollectionView Users { get; private set; }
        public ICollectionView Accounts { get; private set; }

        private UserDomain UserDomainObj = new UserDomain();
        private AccountDomain AccountDomainObj = new AccountDomain();

        public VoucherViewModel()
            : base(new VoucherDomain())
        {
            Users = CollectionViewSource.GetDefaultView(UserDomainObj.Gets());
            Accounts = CollectionViewSource.GetDefaultView(AccountDomainObj.GetsWithSelect());
        }
    }
}
